using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace RaidLog.WebClient
{
    public partial class ProgressForm : Form
    {
        public ProgressForm()
        {
            InitializeComponent();
        }

        #region IProgress Members

        public delegate void vvDelegate();
        public double Progress
        {
            get
            {
                return ((double)ProgressBar.Value) / 100.0;
            }
            set
            {
                this.Invoke(new vvDelegate(delegate()
                {
                    ProgressBar.Value = (int) Math.Floor(100.0 * value);
                }));
            }
        }

        #endregion
    }
}